package com.kevin.demo.entity.user;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author: e20160504
 * @date: 2018/7/18
 * @desc
 */

@Table(name = "user")
public class User {

    @Id
    @Column(name = "id")
    @ApiModelProperty("主键")
    private Integer id;

    @Column(name = "username")
    @ApiModelProperty("用户名")
    private String username;

    @Column(name = "password")
    @ApiModelProperty("密码")
    private String password;

    @Column(name = "create_at")
    @ApiModelProperty("创建时间")
    private String createAt;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCreateAt() {
        return createAt;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
